package com.mjh.mapper;

import com.mjh.annotaion.DataScope;
import com.mjh.bean.Customer;
import com.mjh.model.BaseQuery;
import com.mjh.vo.CustomerVo;
import com.mjh.vo.CustomerVoo;

import java.util.List;

/**
* @author ma
* @description 针对表【t_customer(客户表)】的数据库操作Mapper
* @createDate 2025-02-18 15:20:11
* @Entity com.mjh.bean.Customer
*/
public interface CustomerMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    @DataScope(tableAlias = "tc",tableField = "owner_id")
    List<CustomerVo> selectList(BaseQuery baseQuery);

    @DataScope(tableAlias = "t1",tableField = "create_by")
    List<CustomerVoo> selectAllCustomerList(BaseQuery baseQuery);
}
